package service.impl;

import bean.UserAddress;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.OrderService;
import service.UserService;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    UserService service;
    @Override
    public UserAddress initOrder(String id) {
        UserAddress addr=service.getUserAddress(id);
        System.out.println("id为"+id+"的用户地址为："+addr);
        return addr;
    }
}